<template>
  <div class="app">
    <!-- 头部 -->
    <el-header>
      <HeaderComponent/>
    </el-header>
    <el-container 
      style="height: 100vh; 
      border: 1px solid #eee; 
      margin: 0;
      border: 0;
      padding: 0;">     <!-- style： 隐藏滚动条  去掉白边-->
      <!-- 侧边栏 -->
      <el-aside style="width: 200px;">
        <asideNav></asideNav>
      </el-aside>
      <!-- 主页面 -->
      <el-main>
        <router-view></router-view>  
      </el-main>
    </el-container>
  </div>
</template>
 
<script>
import asideNav from "@/components/AsideNav"
import HeaderComponent from "./components/HeaderComponent.vue";
export default {
  name: "App",
  components: {
    asideNav,HeaderComponent
  }
}
</script>

<style>
  html,
  body{
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
  }
  .el-header {
    /* background-color: #0090ff; */
    background-color: #0090ff;
    color: #fffffc;
    text-align: center;
    line-height: 60px;
  }
</style>
